<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <p>{{info}}</p>
    <input type="text" v-model="info">
    <p>喂，{{tel}}吗？这里有人不听课</p>
    <p>有几个？有{{arr[3]}}个</p>
    <p>{{stu.name}},他是一个{{stu.job}}</p>
    <p>{{time}}</p>
  </div>
  <script src="./js/vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        info: '20200317',
        tel: 110,
        arr: [1,2,3,4,5],
        stu: {
          name: 'Jack Ma',
          job: 'teacher'
        },
        time: new Date()
      },
      updated() {
        console.log('updated')
      },
      destroyed() {
        console.log('destroyed')
      },
      beforeMount() {
        console.log('beforeMount')
      },
      mounted() {
        console.log('mounted')
      },
      created() {
        console.log('created')
      },
      beforeCreate() {
        console.log('beforeCreate')
      },
      beforeUpdate() {
        console.log('beforeUpdate')
      },
      beforeDestroy() {
        console.log('beforeDestroy')
      }
    })
  </script>
</body>
</html>